<script>
export default {
  name: "LoginView"
}
</script>

<template>
  <div id ="main_div" >
      <el-card style="width: 500px;height: 300px;margin: 50px auto">
        <el-form label-width="80px" style="margin-top:50px;width:430px">
          <el-form-item label="用户名">
            <el-input placeholder="请输入用户名"></el-input>
          </el-form-item>
          <el-form-item label="密码">
            <el-input type="password" placeholder="请输入密码"></el-input>
          </el-form-item>
          <el-form-item style="text-align: center">
            <el-button type="primary" style="position: relative;right:30px">登录</el-button>
          </el-form-item>
        </el-form>
      </el-card>
  </div>
</template>

<style scoped>
#main_div{
  height: 500px;
  background-size: cover;/*设置为封面*/
  background-position: center;/*设置背景图片居中*/
  background-image: url('/public/imgs/loginbg.gif');
  overflow: hidden;/*解决粘连问题*/
}
</style>